import request from "@/utils/request";

// 获取员工
export const getSalaryApi = (params:any):Promise<any>=>request.get(`/salary/getsalary?pageSize=${params.pageSize}&&pageNum=${params.pageNum}&&belongToShop=${params.belongToShop}`)
// 添加员工
export const addSalaryApi = (params:any):Promise<any>=>request.post('/salary/addsalary',params)
// 删除员工
export const delSalaryApi = (params:any):Promise<any>=>request.post('/salary/delsalary',params)
// 修改员工
export const updateSalaryApi = (params:any):Promise<any>=>request.post('/salary/updatesalary',params)
// 搜索员工
export const searchSalaryApi = (params:any):Promise<any>=>request.post('/salary/searchsalary',params)
// 修改提成
export const updateCmisApi = (params:any):Promise<any>=>request.post('/salary/updatecmis',params)